summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2022-10-21 08:34:07 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2022-10-22 21:02:04 +0200
commit347432524c179af443ef0f377abb0e44a84ec1e7 (patch)
treedb05f030efbe0243320d73437b27e1ba0daeb90e
parentCMakeLists: Enforce C5233 on MSVC (diff)
downloadyuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.gz
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.bz2
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.lz
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.xz
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.tar.zst
yuzu-347432524c179af443ef0f377abb0e44a84ec1e7.zip
-rw-r--r--src/core/hle/ipc_helpers.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h
index aa27be767..18fde8bd6 100644
--- a/src/core/hle/ipc_helpers.h
+++ b/src/core/hle/ipc_helpers.h
@@ -406,7 +406,7 @@ inline s32 RequestParser::Pop() {
}
// Ignore the -Wclass-memaccess warning on memcpy for non-trivially default constructible objects.
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wclass-memaccess"
#endif
@@ -417,7 +417,7 @@ void RequestParser::PopRaw(T& value) {
std::memcpy(&value, cmdbuf + index, sizeof(T));
index += (sizeof(T) + 3) / 4; // round up to word length
}
-#if defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)
#pragma GCC diagnostic pop
#endif